package inseniarlingua.lang.ia;

import inseniarlingua.lang.Noun;

public class NounIA extends Noun 
{
	public NounIA(String value) {
		super();
		setValue(value);
	}

	@Override
	public String getSingular() {
		return getValue();
	}

	@Override
	public String getPlural() {
		String suffix = "es";
		String[] sEndings = { "a", "e", "er", "o" };
		for (String ending : sEndings) {
			if (getValue().endsWith(ending)) {
				suffix = "s";
				break;
			}
		}
		return getValue()+suffix;
	}	
}
